<template>
<div id="charts13" ref="charts13" style="height: 400px;"></div>
</template>
<script>
  export default {
    mounted() {
      this.drawchart()
    },
    methods: {
      drawchart() {
        var option = {
          backgroundColor:"#fff",
          series: {
            type: 'sankey',
            layout:'none',
            color: [
              '#30588C',
              '#77C3F2',
              '#FAA805'
            ],
            data:[{name: '基因检测'}, {name: '高危症状'}, {name: '未及时就诊'}, {name: '胸部CT检查'}, {name: '胸部X线检查'}, {name: '临床表现'}, {name: '疾病筛查'}, {name: '影像学检查'}, {name: '组织获取'}, {name: '病理学诊断'}, {name: 'ALK阳性非小细胞肺癌'}, {name: '支气管镜检查'}, {name: '活检'}, {name: '手术治疗'}, {name: '非手术治疗'}, {name: '放疗'}, {name: '单药化疗'}, {name: '转移灶切除术'}, {name: '解剖性肺叶切除术'}, {name: '微创治疗'}, {name: '其他治疗方式'}],
            links:[{source: '基因检测', target: 'ALK阳性非小细胞肺癌', value: 1}, {source: '基因检测', target: '支气管镜检查', value: 5}, {source: '高危症状', target: '病理学诊断', value: 3}, {source: '未及时就诊', target: '活检', value: 2}, {source: '胸部CT检查', target: '影像学检查', value: 4}, {source: '胸部CT检查', target: '病理学诊断', value: 3}, {source: '胸部X线检查', target: '组织获取', value: 5}, {source: '临床表现', target: '活检', value: 6}, {source: '临床表现', target: '病理学诊断', value: 3}, {source: '疾病筛查', target: '活检', value: 5}, {source: '影像学检查', target: '微创治疗', value: 5}, {source: '组织获取', target: '手术治疗', value: 5}, {source: '病理学诊断', target: '单药化疗', value: 7}, {source: '病理学诊断', target: '手术治疗', value: 4}, {source: 'ALK阳性非小细胞肺癌', target: '解剖性肺叶切除术', value: 1}, {source: 'ALK阳性非小细胞肺癌', target: '其他治疗方式', value: 6}, {source: '支气管镜检查', target: '微创治疗', value: 6}, {source: '支气管镜检查', target: '放疗', value: 7}, {source: '活检', target: '非手术治疗', value: 5}]
          }
        };
        var mycharts = this.$echarts.init(this.$refs.charts13)
        mycharts.setOption(option)
      }
    }
  }
</script>
<style></style>

